package com.kdgc.springboot001.javabean;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@NoArgsConstructor     //无参构造
@ToString              //lombok功能   在编译的时候为我们自动生成
@Data                  //lombok功能  等价于  getter and setter
public class User {
    public String name;
    private Integer age;
    private Pet pet;


    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

}
